<!--container begin-->
  <div id="container" class="fix">
    <div class="crumb"><a href="/">Home</a> &gt; Order List</div>
    <div class="icontainer">
      <div id="main">
        
        <div class="userWrapper">
          <h3>Order List</h3>
          <div class="userDes">
            <div class="fix">
              <p>To view the order details, please click the order number below.</p>
              <table class="cartTable">
                <tbody>
                  <tr class="title">
                    <th class="sku">Date</th>
                    <th class="item">Order Number</th>
                    <th class="total">Total</th>
                    <th class="status">Order Status</th>
                    <th class="orderstate">Order detail</th>
                  </tr>
                  <?php foreach ($order as $item):?>
                  <tr>
                    <td><?php echo date('Y-m-d H:i',$item['create_time']);?></td>
                    <td><a href="/user_mag/orderdetail/<?php echo $item['orderid'];?>" class="ordernumber"><?php echo $item['ordersn'];?></a></td>
                    <td class="color01"><?php echo $item['total'];?></td>
                    <td><p class="unpaid"><?php echo $item['status'];?></p>
                    <td><a href="/user_mag/orderdetail/<?php echo $item['orderid'];?>">view</a></td>
                  </tr>
					<?php endforeach;?>
                </tbody>
              </table>
              <div class="pageBar">
                <div class="page"> <?php for($i=1;$i<=$page;$i++):?><a href="/user_mag/myorder/<?php echo $i;?>" rel="nofollow"><?php echo $i;?></a><?php endfor;?></div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div id="aside">
        <h3>My Account</h3>
        <ul class="category">
        <li><a href="/user_mag/myorder" rel="nofollow">My Orders</a></li>
<li><a href="/user_mag/addresslist" rel="nofollow">Address</a></li>
<li><a href="/user_mag/account" rel="nofollow">Account Details</a></li>
<li><a href="/user_mag/question" rel="nofollow">My Question</a></li>
<li><a href="/user_mag/wishlist" rel="nofollow">My Wishllist</a></li>
        </ul>
      </div>
    </div>